﻿@using Domain.Entity
@using Pro260Website.Infrastructure
@model Pro260Website.Models.NavViewModel

@{
    Layout = null;
}

<ul id="nav" class="@Html.GetColor(Request.Cookies["color"])">
    <li>@Html.ActionLink("Home", "Index", "Home", null, null)</li>
    <li>@Html.ActionLink("Games", "List", "Game", new {controller ="Game"}, null)
        <ul>
            <li>@Html.ActionLink("Upcoming Games", "ListUpcoming", "Game")</li>
            <li>@Html.ActionLink("Top Rated Games", "GamesList", "Game", new
                                                                      {
                                                                          title = "Top Rated Games",
                                                                          viewname = "GameListTable",
                                                                          pageSize = 20,
                                                                          type = GameViewType.TopRated,
                                                                          area = ""
                                                                      }, null)
            </li>
            <li>@Html.ActionLink("Top Reviewed Games", "GamesList", "Game", new
                                                                      {
                                                                          title = "Top Reviewed Games",
                                                                          viewname = "GameListTable",
                                                                          pageSize = 20,
                                                                          type = GameViewType.TopReviewed,
                                                                          area = ""
                                                                      }, null)
            </li>
            <li> @Html.ActionLink("Popular Games", "GamesList", "Game", new {  
                                                                   title = "Popular Games",
                                                                   viewname = "GameListTable",
                                                                   type = GameViewType.MostPopular,
                                                                   pageSize = 20,
                                                                   area = ""}, null)
            </li>
        </ul>
    </li>
    <li>@Html.ActionLink("News", "Listings", "News", new { controller = "News"}, null)</li>
    <li>@Html.ActionLink("Reviews", "ReviewList", new {controller= "Review"})</li>
    <li>@Html.ActionLink("Companies","Listings", "Company", new {controller = "Company"}, null)
        <ul>
            <li>@Html.ActionLink("Company News", "CompanyListings", "News", new { controller = "News"}, null)</li>
        </ul>
    
    </li>
    <li>@Html.ActionLink("Platforms", "Listings", "Platform", new {controller ="Platform"}, null)</li>
    <li>@Html.ActionLink("Videos", "Listings", "Video", new {controller = "Video"}, null)</li>
    @if(@User.IsInRole("Admin"))
    {
        <li><a>Admin Panel</a>
            <ul>
                    <li>@Html.ActionLink("Manage Platforms", "AdminListings", "Platform")</li>
                    <li>@Html.ActionLink("Manage Companies", "AdminListings", "Company")</li>
                <li>@Html.ActionLink("Manage Games", "Index", "Game", new { area = "Admin" }, null)</li>
                <li>@Html.ActionLink("Manage Users", "Index", "Account", new { area = "Admin" }, null)</li>
                <li>@Html.ActionLink("Manage Videos", "AdminListings", "Video")</li>
                <li>@Html.ActionLink("Manage News", "Index","News", new { area = "Admin"}, null)</li>
               
            </ul>
        </li>
    }
</ul>